package com.lvyq.myplayer.common.util;

import com.lvyq.myplayer.common.model.PlayType;
import com.lvyq.myplayer.common.model.RankingType;
import com.lvyq.myplayer.common.model.SexType;
import com.lvyq.myplayer.common.model.SingerType;
import com.lvyq.myplayer.model.index.IndexBannerBean;
import com.lvyq.myplayer.model.index.IndexBannerBeans;
import com.lvyq.myplayer.model.index.IndexVideoBean;
import com.lvyq.myplayer.model.index.IndexVideoBeans;
import com.lvyq.myplayer.parcelable.SongInfoData;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

public class MockDataUtil {

    public static IndexBannerBean getIndexBannerList(){

        List<IndexBannerBeans> beansList = new ArrayList<>();
        beansList.add( new IndexBannerBeans(1,"","https://img1.baidu.com/it/u=848211016,2836436515&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"));
        beansList.add( new IndexBannerBeans(2,"","https://img1.baidu.com/it/u=2260073643,1575489251&fm=253&fmt=auto&app=138&f=JPEG?w=1080&h=432"));
        beansList.add( new IndexBannerBeans(3,"","https://img2.baidu.com/it/u=3587458000,1897263968&fm=253&fmt=auto&app=138&f=JPEG?w=1125&h=450"));
        beansList.add( new IndexBannerBeans(4,"","https://img0.baidu.com/it/u=3122861382,3373189728&fm=253&fmt=auto&app=138&f=JPEG?w=606&h=300"));
        IndexBannerBean bannerBean = new IndexBannerBean(beansList,200,"操作成功",5);
        return bannerBean;
    }




    public static IndexVideoBean getIndexVideoList() {

        List<IndexVideoBeans> beansList = new ArrayList<>();
        beansList.add( new IndexVideoBeans(1,"","《第一次爱的人》当我失去你那一秒,心突然间变老","","","https://img1.baidu.com/it/u=9513016,2515480888&fm=253&fmt=auto&app=120&f=JPEG?w=889&h=500","","03:49"));
        beansList.add( new IndexVideoBeans(2,"","重生之我在异乡为异客","","","https://img2.baidu.com/it/u=3270935486,1774558839&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500","","00:28"));
        beansList.add( new IndexVideoBeans(3,"","半壶纱","","","https://img1.baidu.com/it/u=3104633199,2820724752&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=500","","03:34"));

        IndexVideoBean videoBean = new IndexVideoBean(beansList,200,"操作成功",5);
        return videoBean;
    }


    /**
     * singer - 排序字母
     * @return
     */
    public static List<String> letterVal(){
        List<String> res = new ArrayList<>();
        res.add("热");res.add("A");res.add("B");
        res.add("C");res.add("D"); res.add("E");
        res.add("F");res.add("G");res.add("H");
        res.add("I");res.add("J");res.add("K");
        res.add("L");res.add("M");res.add("N");
        res.add("O");res.add("P");res.add("Q");
        res.add("R");res.add("S");res.add("T");
        res.add("U");res.add("V");res.add("W");
        res.add("X");res.add("Y");res.add("Z");
        return res;
    }


    //性别类型 1 男  2女  3乐对组合
    public static List<SexType> sexTypeList(){
        List<SexType> res = new ArrayList<>();
        res.add(new SexType("全部",-1));
        res.add(new SexType("男",1));
        res.add(new SexType("女",2));
        res.add(new SexType("乐队组合",3));
        return res;
    }

    /**
     * 歌手分类 1华语歌手 2韩国歌手 3 日本歌手 4欧美歌手
     * @return
     */
    public static List<SingerType> singerTypeList(){
        List<SingerType> res = new ArrayList<>();
        res.add(new SingerType("全部",-1));
        res.add(new SingerType("华语",1));
        res.add(new SingerType("韩国",2));
        res.add(new SingerType("日本",3));
        res.add(new SingerType("欧美",3));
        return res;
    }


    public static List<SexType> songTypeList(){
        List<SexType> res = new ArrayList<>();
        res.add(new SexType("单曲",0));
        res.add(new SexType("专辑",1));
        //res.add(new SexType("视频",2));
        return res;
    }

    /**
     * 排行榜
     * @return
     */
    public static List<RankingType> rankingTypeList(){
        List<RankingType> res = new ArrayList<>();
        res.add(new RankingType("热门",0));
        res.add(new RankingType("特色",1));
        res.add(new RankingType("全球",2));
        return res;
    }

    /**
     * 播放类型
     * @return
     */
    public static List<PlayType> playTypeList(){
        List<PlayType> res = new ArrayList<>();
        res.add(new PlayType("单曲",1));
        res.add(new PlayType("歌单",2));
        res.add(new PlayType("专辑",3));
        return res;
    }

    /**
     * 播放类型
     * @return
     */
    public static List<PlayType> playCacheList(){
        List<PlayType> res = new ArrayList<>();
        res.add(new PlayType("单曲",1));
        res.add(new PlayType("电台",2));
        return res;
    }

    @NotNull
    public static SongInfoData initSongInfo() {
        SongInfoData data =  new SongInfoData(-1,null,"香水音乐",null,null,
               "不要喷香水",-1,null,null,null,null,
                -1,null,null,null,-1,1 );

        return data;
    }
}
